home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / ile-2.01 / Makefile < prev    next >
Encoding:
Makefile  |  1995-06-30  |  1.4 KB  |  57 lines

  1. # 07.07.94 Hops - modified from orig for SunOS
  2.  
  3. # Set   (should probably posixise this...)
  4. #
  5. # Dir reading 
  6. #       -DUSE_DIR           - use /usr/include/sys/dir.h ( Bsd/SunOs ? )
  7. #       -DUSE_DIRENT        - use /usr/include/dirent.h  ( SysV ?? )
  8. #   tty handling
  9. #       -DHAVE_TERMIO_H         You have /usr/include/termio.h   ( SysV )
  10. #
  11. #   utmp handling - leave both undefined if don't want to bother
  12. #       -DHAVE_GETUT            Have getutent(), getutline(), pututline() SVID2
  13. #       -DHAVE_TTYSLOTUT        Have ttyslot fn
  14. #
  15. #   ptty handling
  16. #       -DHAVE_MERGED_PTY       Sco-ism - pty naming and opening 
  17. #                                           probably like no other
  18. #
  19. #   ttyslot exists but not worlk on sco 
  20. #           ttyslot() doesnt find valid slot
  21. #
  22. # Not setting HAVE_TERMIO_H should fallback to BSD sgtty handling
  23. # but this is untested since sco port
  24.  
  25. #DEBUGFLAGS= -O
  26. DEBUGFLAGS= -g
  27.  
  28. # Sun/Bsd
  29. #PLATFORM_FLAGS= -DUSE_DIR
  30. #EXTRA_LIBS=
  31. #INSTALL=install
  32.  
  33. # sco
  34. PLATFORM_FLAGS= -DUSE_DIRENT -DHAVE_TERMIO_H -DHAVE_GETUT -DHAVE_MERGED_PTY
  35. INSTALL=  /usr/bin/X11/scoinst
  36.  
  37.  
  38. INSTALL_DIR = /usr/skunk
  39. CFLAGS = $(DEBUGFLAGS) $(PLATFORM_FLAGS)
  40. #CC = gcc
  41. CC = cc
  42.  
  43.  
  44.  
  45. all: ile
  46.  
  47. clean:
  48.     -rm *.o
  49.     -rm ile
  50.  
  51. install:
  52.     $(INSTALL) -c ile $(INSTALL_DIR)/bin/ile
  53.     $(INSTALL) -c ile.1 $(INSTALL_DIR)/man/man1/ile.1
  54.  
  55. ile: ile.o tty.o
  56.     cc -o ile ile.o tty.o $(EXTRA_LIBS) -ltermcap
  57.